﻿namespace Digitalmes.Application.Sys.Dicts;

/// <summary>
/// 字典数据项 DTO 对象。
/// </summary>
public sealed class SysDictItemDto : Dto
{
    /// <summary>
    /// 字典 Id
    /// </summary>
    public long DictId { get; set; }

    // <summary>
    /// 字典编号（设定后不能修改）
    /// </summary>
    [NotNull]
    public string? Code { get; set; }

    /// <summary>
    /// 字典标签
    /// </summary>
    [NotNull]
    public string? Label { get; set; }

    /// <summary>
    /// 字典键值
    /// </summary>
    [NotNull]
    public string? Value { get; set; }

    /// <summary>
    /// 排序
    /// </summary>
    public int Order { get; set; }

    /// <summary>
    /// 启用状态（0->停用，1->启用）
    /// </summary>
    public EnabledStatusEnum Status { get; set; }

    public string? CreatedBy { get; set; }

    public DateTime CreatedTime { get; set; }

    public string? UpdatedBy { get; set; }

    public DateTime? UpdatedTime { get; set; }
}
